package org.csu.controller;

import org.csu.pojo.User;
import org.csu.service.UserRegisterService;

import org.springframework.stereotype.Controller;
import javax.annotation.Resource;

/**
 * 负责处理用户注册相关的请求处理
 *
 *
 * @author Mr jiaren
 * */



@Controller(value="userRegisterController")
public class UserRegisterController {

    @Resource(name="userRegisterService")
    private UserRegisterService userRegisterService;


    public String register(User user,String confirmPassword){
        return userRegisterService.register(user, confirmPassword);
    }

    public String vertifyEmail(String token){
        return userRegisterService.vertifyEmail(token);
    }

    public Boolean checkEmailExists(String email){
        return userRegisterService.checkEmailExists(email);
    }


}
